# 装饰器
def decorator(fn):
    def inner(num1, num2):
        print('运算中...')
        return fn(num1, num2)

    return inner


# 定义任意两个数相加
@decorator
def add(num1, num2):
    return num1 + num2


if __name__ == '__main__':
    print(add(1, 2))
